home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re `override' keyword; was Re < prev    next >
Encoding:
Internet Message Format  |  1996-08-13  |  871 b   |  [TEXT/ttxt]

  1. Subject:     Re: `override' keyword; was Re: CW9, RTTI, and ODF
  2. Sent:        8/12/96 2:26 PM
  3. Received:    8/12/96 5:44 PM
  4. From:        Scott Collins, collins@acm.org
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. There's no `override' keyword because that would imply that derived classes
  9. may override _any_ visible method of the base class, e.g., as in Object
  10. Pascal.  In C++, the class designer decides which methods may be replaced
  11. in sub-classes, i.e., only those marked `virtual'.  It would be easier to
  12. get your compiler vendor to provide smarter error messages than to get the
  13. C++ committee to OK (what they would consider) an unnecessary new keyword.
  14.  
  15.  
  16. ............................................................
  17. Scott Collins                                collins@ACM.ORG
  18.  
  19.  
  20.